<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>推送参数</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/static/layuiadmin/layui/css/layui.css" media="all">
</head>
<body>
<pre class="layui-code" lay-title="JavaScript" lay-skin="notepad" id="json">

</pre>
<script src="/static/layuiadmin/layui/layui.js"></script>
<script>
    layui.use('code', function(){
        layui.code();
        var $ = layui.$
        var str = '{$jsonStr}';
        str = str.replace(/&quot;/g, '"');
        // 方法实现
        var obj = eval('(' + str+ ')');
        var jsonPretty = JSON.stringify(obj, null, 2);
        $("#json").html(jsonPretty);
    });
</script>
</body>
</html>